package com.hsqyz.common.exception;

import lombok.Getter;

/**
 * 远程调用异常
 *
 * @author lcz
 */
@Getter
public class RemoteException extends RuntimeException {

    /**
     * 错误码
     */
    private Integer code;

    /**
     * 错误提示
     */
    private String message;

    /**
     * 错误明细，内部调试错误
     */
    private String detailMessage;

    public RemoteException() {
        super();
    }

    public RemoteException(String message) {
        this.message = message;
    }

    public RemoteException(String message, Integer code) {
        this.message = message;
        this.code = code;
    }

}
